package com.huoyun.car.service;

import java.util.List;

import com.huoyun.car.bean.Car;
import com.huoyun.car.bean.Driver;

public interface DriverService {
	
	public void saveDriver(Driver d);
	
	public Driver getDriverById(long driverId);
	
	public List<Driver> getDriverByUserId(long userId);
	
	public void updateAll(Driver driver);
	
	public void updateRate(String rate,long count,  long id);
	
	public void delete(long driverId);
	
	public List<Driver> getDriverListByUsername(String username);

	public Driver getDriverByIdCardNumber(long userId, String driverIdCardNumber);

	public Driver getDriverByDrivingLicenseNumber(
			long userId, String driverDrivingLicenseNumber);
}
